const laugh = new Audio("xiao/死亡音效2_01.mp3")
let choice = document.getElementsByClassName("choice")

function choiceWhendie() {
    choice[1].onclick = function () {
        location.reload()
    }
    choice[2].onclick = function () {
        location.href = "../兰/start.html"
    }
}
choiceWhendie()

// 暂停界面的重玩和退出按钮
function again() {
    location.reload()
}
function start() {
    location.href = "../兰/start.html"
}
// 




setInterval(function () {
    if (healthy[0].style.display == "none") {
        bgSoundStart = function () {
            bgSound.loop = false
            
        }
        bgSoundStart()
        
    }
    
}, 100)

